@charset "utf-8";

/*
@名称: base
@功能: 重设浏览器默认样式
*/

/* 防止用户自定义背景颜色对网页的影响，添加让用户可以自定义字体 */
html, body{
	font-family: "Microsoft YaHei",Verdana,Arial,Tahoma,sans-serif!important;
	font-size: 14px;
	color:#333;
	/*background:#fff;*/
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
  // min-width: 1360px;
}
html body { height: 100% }

/* 内外边距通常让各个浏览器样式的表现位置不同 */
*{margin:0; padding: 0}

/* 重设 HTML5 标签, IE 需要在 js 中 createElement(TAG) */
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
    display:block;
}

/* HTML5 媒体文件跟 img 保持一致 */
audio,canvas,video {
    display: inline-block;*display: inline;*zoom: 1;
}

/* 要注意表单元素并不继承父级 font 的问题 */
/*body,button,input,select,textarea{
font:15px/1.5 微软雅黑;
}*/
input,select,textarea{
font-size:100%;
}

/* 去掉各Table cell 的边距并让其边重合 */
table{
border-collapse:collapse;border-spacing:0;
}

/* IE bug fixed: th 不继承 text-align*/
th{
text-align:inherit;
}

/* 去除默认边框 */
fieldset,img{
border:0;
}

/* ie6 7 8(q) bug 显示为行内表现 */
section iframe{
  display: none;
  border: none;
}

/* 去掉 firefox 下此元素的边框 */
abbr,acronym{
border:0;font-variant:normal;
}

/* 一致的 del 样式 */
del {
text-decoration:line-through;
}

address,caption,cite,code,dfn,em,th,var {
font-style:normal;
font-weight:500;
}

/* 去掉列表前的标识, li 会继承 */
ol,ul {
list-style:none;
padding-right: 0;
}

/* 对齐是排版最重要的因素, 别让什么都居中 */
caption,th {
text-align:left;
}

/* 来自yahoo, 让标题都自定义, 适应多个系统应用 */
h1,h2,h3,h4,h5,h6 {
// font-size:100%;
font-weight:500;
padding: 0;
margin: 0;
}

q:before,q:after {
content:'';
}

/* 统一上标和下标 */
sub, sup {
    font-size: 75%; line-height: 0; position: relative; vertical-align: baseline;
}
sup {top: -0.5em;}
sub {bottom: -0.25em;}


a{
	color: #333;
	text-decoration: none;
}
/* 让链接在 hover 状态下显示下划线 */
a:hover {
	text-decoration: none;
	/*color: #c00;*/
}

/* 默认不显示下划线，保持页面简洁 */
ins,a {
text-decoration:none;
}

/* 清理浮动 */
.fn-clear:after {
visibility:hidden;
display:block;
font-size:0;
content:" ";
clear:both;
height:0;
}
.fn-clear {
zoom:1; /* for IE6 IE7 */
}

/* 隐藏, 通常用来与 JS 配合 */
body .fn-hide {
display:none;
}

/* 设置内联, 减少浮动带来的bug */
.fn-left,.fn-right {
display:inline;
}
.fn-left {
float:left;
}
.fn-right {
float:right;
}
.hide { display: none; }
.show { display: block; }
.error { color: red; font-size: 12px; }

.show { display: block; };
.align_center { text-align: center; }
.color_red { color: red; }

::-webkit-scrollbar {
	width: 0px;
	background-color: transparent; 
} 

// $common-size: 15px; // 字体大小
$samllsize: 13px;
$gap: 16px; // 左右留白
$purple: #9554c5; // 紫色
$green: #7ed321; // 绿色
$gold: #f4cd6f; // 
$bordercolor: #e3e3e3;
$footHeight: 50px;
$max-width: 750px;
$common-size: 0.6rem;
$big-size: 0.68rem;
$small-size: 0.52rem;

.hide {
	display: none!important;
}
.gold {
	color: #e8a912;
}

.bg-gold {
	background:#f1bc3b;
}

.bg-red {
	background:#ef4e4e;
}
.bg-white {
	background: #fff!important;
}

.font-grey {
	color: #999!important;
}
.font-red {
	color:#ec3636;
}



/*二行显示，超出部分。。。*/
.one-line {
	white-space:nowrap; 
	overflow:hidden; 
	text-overflow:ellipsis;
}

/*二行显示，超出部分。。。*/
.two-line {
	text-overflow: -o-ellipsis-lastline;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

html {
	height: 100%;
	max-width: $max-width;
	margin: 0 auto;
}
body {
	font-family: "Microsoft YaHei",Verdana,Arial,Tahoma,sans-serif!important;
	font-size: $common-size;
	line-height: 1.4;
	background: #f4f4f4;
}
div,
nav {
	box-sizing: border-box;
}

header {
	position: fixed;
	top: 0;
	height: 50px;
	line-height: 50px;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: $max-width;
	padding: 0 $gap;
	background: #fff;
	box-sizing: border-box;
	box-shadow:0 2px 4px 0 rgba(0,0,0,0.1);
	z-index: 12;

	.header-left {
		width: 30px;
		height: 30px;
		background: url(../img/bg.png) no-repeat -101px 0;	
	}

	.sao {
		width: 22px;
		height: 22px;
		background: url(../img/bg.png) no-repeat -337px 0;	
	}

	.header-title {
		font-size: $big-size;
		text-align: center;
		flex-grow: 1;
		font-weight: bold;
	}

	.header-right {
		width: 30px;
		height: 30px;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: right;
		align-items: center;
		// background: url(../img/bg.png) no-repeat -101px 0;	
	}

	.search {
		width: 22px;
		height: 22px;
		background: url(../img/bg.png) no-repeat -362px 0;	
	}
}

// weui+ 部分样式改动
.weui_cells {
	margin-top: 12px;

	.weui_cell {
		padding: 0 $gap;
		line-height: 1.4;
		font-size: $common-size;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		align-items: cente;
		height: 50px;

		&:before {
			left: 0;
			width: 100vw;
		}

		.weui_cell_ft {
			color: #333;
		}

		.icon {
			width: 24px;
			height: 19px;
			background: url(../img/bg.png) no-repeat;
			margin-right: 7px;

		}
		
		.support {
			@extend .icon;
			background-position: -174px 0;
		}
		
		.discount {
			@extend .icon;
			background-position: -198px 0;
		}
	}
}
.weui_cells_access .weui_cell_ft:after {
	top: 0;
	left: -1px;
	width: 8px;
	height: 8px;
}

.weui_cells_checkbox {

	.weui_cell {

		.checkbox {
			width: 22px;
			height: 22px;
			margin-left: 7px;
		}
	}

	.weui_check:checked+.weui_icon_checked:before {
		color: $gold;
	}

}

.nav-blank {
	height: $footHeight;
}

.align-center {
	text-align: center;
}

.slide {
	width: 100vw;
	height: 61.8vw;

	&.home-page-slide {
		height: 40vw;
	}

	.dot {
		width: 54px; 
		height: 28px;
		line-height: 28px;
		background: rgba(0,0,0,0.4);
		border-radius:3px;
		color: #fff;
		font-size: $common-size;
		@extend .align-center;
	}
}

.goods-details-slide {
	height: 100vw;
}

.route-option {
	position: absolute;
	top: 0;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	height: 50px;
	padding: 0 $gap;
	z-index: 10;

	.option-bacK {
		width: 30px;
		height: 30px;
		background: url(../img/bg.png) no-repeat -698px 0;
	}

	.option-share {
		width: 19px;
		height: 23px;
		background: url(../img/bg.png) no-repeat -131px 0;
	}
}

.subtitle {
	width: 100%;
	height: 21px; 
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 7px;

	.title-icon {
		background: url(../img/bg.png) no-repeat -31px 0;
		margin-right: 12px;
		width: 4px;
		height: 18px;
	}

	.socer {
		margin-left: 12px;
	}
}


// 课程翻译
.course {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	padding: 51px $gap 0;
	background: #fff;

	.course-list {
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		align-items: center;
		background:#f4f4f4;
		height: 64px;
		margin-bottom: 8px;

		.num {
			font-size:24px;
			color:#303030;
			margin: 0 25px 0 19px;
			font-weight: bold;
		}

		.details {
			display: flex;
			display: -webkit-flex;
			flex-direction: column;
			justify-content: space-between;
			flex-grow: 1;
			height: 44px;
			overflow: hidden;

			.details-name {
				font-weight: bold;
				flex-grow: 1;
				overflow: hidden;
				@extend .one-line;
			}

			.details-time {
				@extend .font-grey;
				font-size: $small-size;
			}

		}
	}

	.more {
		text-align: center;
		height: 24px;
		line-height: 24px;
		margin-bottom: 16px;
		margin-top: 16px;
		span {
			display: inline-block;
			width: 9px;
			height: 18px;
			margin-right: 9px;
			background: url(../img/bg.png) no-repeat -22px 0;
			transform: rotate(90deg);
		}
	}

	.course-name {
		box-shadow: 0 3px 10px 0 rgba(0,0,0,0.15);
		position: absolute;
		top: -32px;
		left: -0;
		text-indent: $gap;
		width:280px;
		height: 64px;
		line-height: 64px;
		font-size: 20px;
		background: #fff;
		border-top-right-radius: 6px;
		border-bottom-right-radius: 6px;
		font-weight: bold;
	}

	.course-proty {
		width: 100%;
		height: 34px;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;

		span {
			margin-right: 8px;
		}

		.proty-price {
			font-size:24px;
			color:#ec3636;
		}

		.proty-spec {
			border: 1px solid;
			height: 21px;
			line-height: 21px;
			border-radius: 4px;
			padding: 0 7px;
		}

		.art {
			border-color: $purple;
			color: $purple;
		}

		.try {
			border-color: $green;
			color: $green;
		}
	}

	.course-join {
		height: 21px;
		line-height: 21px;
		color:#999;
		margin-bottom: 12px;
		
		span {
			margin-left: 30px
		}
	}

	.coupon {
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		background:#f4f4f4;
		border-radius:3px;
		height:50px;
		margin-bottom: 24px;

		.coupon-icon {
			width: 22px;
			height: 19px;
			background: url(../img/bg.png) no-repeat 0 0;
			margin-right: 8px;
			margin-left: 15px;
		}

		.coupon-text {
			flex-grow: 1;
			height: 21px;
			line-height: 21px;
			color:#303030;
		}

		.coupon-arrow {
			width: 9px;
			height: 18px;
			margin-right: 12px;
			background: url(../img/bg.png) no-repeat -22px 0;
		}
	}

	.organization {
		width: 100%;
		height: 80px;
		padding: 8px 0 8px 12px;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		background:#f4f4f4;
		border-radius:3px;
		margin-bottom: 21px;

		img {
			width: 104px;
			height: 64px;
			margin-right: 21px;
		}

		.organization-name {
			height: 100%;
			flex-grow: 1;

			.name {
				height: 21px;
				line-height: 21px;
				margin-bottom: 4px;
			}

			.desc {
				height: 18px;
				line-height: 18px;
				color: #999;
				font-size: $samllsize;
			}
		}
	}

	.course-desc {
		@extend .font-grey;
		margin-bottom: 16px;
	}

	.address {
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: 9px;

		.address-detail {
			flex-grow: 1;
			display: flex;
			flex: -webkit-flex;
			flex-direction: column;
			justify-content: space-between;
		}

		img {
			height: 40px;
			width: 53px;
		}
	}

	.comment {
		width: 100%;
		padding: 12px 0 0;

		.comment-list {
			display: flex;
			display: -webkit-flex;
			flex-direction: row;

			img {
				width: 32px;
				height: 32px;
				border-radius: 50%;
				margin-right: 8px;
			}

			.comment-detail {
				flex-grow: 1;
				border-bottom: 1px solid $bordercolor;
				padding-bottom: 11px;

				.comment-user {
					margin-bottom: 4px;
					display: flex;
					display: -webkit-flex;
					flex-direction: row;
					justify-content: space-between;

					.time {
						width: 75px;
						font-size: $samllsize;
						color: #ccc;
					}
				}

				.detail {
					@extend .font-grey;
				}
			}
		}

		.more-comment {
			text-align: center;
			padding: 17px 0;
		}
	}

}

.goods-details-info {
	padding-top: 14px;
	padding-bottom: 14px;

	.goods-details-name {
		@extend .two-line;
		margin-bottom: 12px;
		font-weight: bold;
	}

	.course-proty {
		margin-bottom: 8px;
	}

	.coupon {
		margin-bottom: 0;
	}
}

.choose-spec {
	width: 100%;
	padding: 16px;
	background: #fff;
	margin-top: 12px;

	.title {
		font-weight: bold;
	}

	.spec-lists {
		width: 100%;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		align-content: flex-start;
		flex-wrap: wrap;

		.list {
			margin-right: 8px;
			background: #f4f4f4;
			padding: 0 16px;
			height: 36px;
			text-align: center;
			line-height: 36px;
			border-radius:3px;
			margin-top: 8px;

			&.active {
				background: $gold;
				color: #fff;
			}
		}
	}


}

.calculate-num {
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	margin-top: 8px;
	margin-bottom: 8px;

	.add{
		width: 36px;
		height: 36px;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		border-radius:3px;
		background: #f4f4f4;
		font-size:20px;

	}

	.dec {
		@extend .add;

		span {
			width: 65px;
			height: 5px;
			background: #333;
			transform: scale(0.3);
			-webkit-transform: scale(0.3);
		}
	}

	.val {
		height: 36px;
		width: 60px;
		margin: 0 4px;
		border-radius:3px;

		input {
			width: 100%;
			height: 100%;
			border: none;
			background: #f4f4f4;
			outline: none;
			text-align: center;
		}
	}
}

.border-line {
	width: 100%;
	height: 12px;
	background: #f4f4f4;
}


.course-arrange {
	padding-top: 16px;

	.title {
		margin-bottom: 10px;
	}
}
.foot-option {
	position: fixed;
	width: 100%;
	max-width: $max-width;
	bottom: -1px;
	height: $footHeight;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	align-items: center;
	background: #fff;
	z-index: 10;
	box-shadow: 0 -1px 10px 0 rgba(0,0,0,0.15);

	.option-collect {
		width: 94px;
		height: 100%;
		display: flex;
		display: -webkit-flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		font-size: 10px;

		span {
			width: 22px;
			height: 22px;
			background: url(../img/bg.png) no-repeat -35px 0;
		}
	}

	.option-ask {
		@extend .option-collect;
		span {
			width: 22px;
			height: 22px;
			background: url(../img/bg.png) no-repeat -57px 0;
		}
	}

	.option-select-all {
		@extend .option-collect;
		padding-left: 16px;

		label {
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			align-items: center;
			width: 100%;
			height: 100%;

			& > * {
				pointer-events: none;
			}
		}

		span {
			width: 22px;
			height: 22px;
			margin-right: 8px;
			border: 1px solid #ccc;
    		border-radius: 50%;
    		background: none;
    		box-sizing: border-box;
		}

		input {
			display: none;

			&:checked + span {
				border: none;
				background: url(../img/bg.png) no-repeat -388px -44px;
			}
		}
	}

	.summary {
		width: 188px;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		@extend .font-grey;
	}

	.option-join {
		flex-grow: 1;
		text-align: center;
		color: #fff;
		line-height: $footHeight;
		background: $gold;
	}

	.join-price {
		@extend .summary;
		width: 161px;
	}

	.pay-details {
		@extend .summary;
		flex-grow: 1;
	}

	.option-cancel {
		border:1px solid #f4cd6f;
		border-radius:100px;
		width:160px;
		height:36px;
		margin-right: 16px;
		line-height: 36px;
		text-align: center;
		@extend .gold;
	}
}

.action-musk {
	position: fixed;
	bottom: 0;
	width: 100%;
	max-width: $max-width;
	z-index: 11;
	background:rgba(0,0,0,0.6);
	height: 100vh;
}
// 优惠券领取
.coupon-action {
	position: fixed;
	bottom: -1px;
	width: 100%;
	max-width: $max-width;
	z-index: 12;
	background: #fff;
	transition: all 0.3s;
	-webkit-transition: all 0.3s;		
	.weui_cells {
		margin-top: 0;
		
		&:after {
			border: none;
		}

		.weui_cell {
			height: 60px;

			.icon {
				width: 30px;
				height: 30px;
				background: url(../img/bg.png) no-repeat;
			}

			.remaind {
				width: 28px;
				height: 28px;
				margin-right: 7px;
				background: url(../img/bg.png) no-repeat -221px 0;
			}

			.wx-icon {
				@extend .icon;
				background-position: -249px 0;
			}

			.traffic {
				@extend .icon;
				background-position: -281px 0
			}


			.big-money {
				font-size: 20px;
				@extend .gold;
			}
		}


		.bank-cell {
			display: flex;
			display: -webkit-flex;
			flex-direction: column;
			justify-content: space-between;
			height: 42px;

			.useable-money {
				font-size: $samllsize;
			}
		}

	}
	
	.bank-blank {
		height: 40px;

		&:before {
			display: block;
			content: '';
			width: 100%;
			border-top: 1px solid #d9d9d9;
			-webkit-transform: scaleY(.3);
   			transform: scaleY(.3);
		}
	}

	&.out {
		bottom: -362px;
	}
	.action-close {
		position: absolute;
		width: 22px;
		height: 22px;
		font-size: 40px;
		line-height: 22px;
		top: 11px;
		left: 13px;
	}

	.action-title {
		text-align: center;
		font-size: $big-size;
		height: 52px;
		line-height: 52px;
	}

	.action-item {
		width: 100%;
		padding: 0 $gap;

		.item-coupon {
			border-radius: 10px;
			width: 100%;
			padding: 0 16px;
			display: flex;
			flex-direction: row;
			height: 100px;
			color: #fff;
			margin-bottom: 12px;

			.coupon-msg {
				flex-grow: 1;
				display: flex;
				display: -webkit-flex;
				flex-direction: column;
				justify-content: space-between;
				padding: 10px 0;

				.coupon-name {
					height: 24px;
					display: flex;
					display: -webkit-flex;
					flex-direction: row;
					align-items: center;

					.support-icon {
						width: 24px; 
						height: 19px;
						margin-right: 11px;
						background: url(../img/bg.png) no-repeat -77px 0;
					}
					.discount-icon {
						width: 24px; 
						height: 19px;
						margin-right: 11px;
						background: url(../img/bg.png) no-repeat -151px 0;
					}

					.name {
						font-size: $big-size;
					}
				}

				.coupon-detail {
					font-size: $samllsize;
				}

			}

			.coupon-opt {
				padding: 10px 0;
				width: 90px;
				text-align: center;
				height: 100%;
				line-height: 80px;
				border-left: 1px dotted #fff;
			}
		}
	}

	.action-option {
		height: 50px;
		line-height: 50px;
		text-align: center;
		color: #fff;
		margin-top: 48px;

		&:active {
			opacity: 0.6;
		}
	}


}

.sign-course-detail {
	width: 100%;
	height: 97px;
	padding: $gap;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	align-items: center;
	background: #fff;
	margin-top: 16px;

	img {
		width: 104px;
		height: 64px;
		margin-right: 10px;
	}

	.course-info {
		flex-grow: 1;
		display: flex;
		display: -webkit-flex;
		flex-direction: column;
		justify-content: space-between;
		height: 100%;


		.name {

		}

		.price {
			@extend .font-grey;
		}
	}

}

.sign-people-title {
	color:#999;
	margin-top: 19px;
	width: 100%;
	padding-left: $gap;
	margin-bottom: 4px;

	& + .weui_cells {
		margin-top: 0;
	}
}

.course-email {
	padding: $gap;
	background: #fff;
	margin-top: 16px;

	.course-email-item {
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

// 键盘
.keyboard {
	position: fixed;
	bottom: -1px;
	width: 100%;
	max-width: $max-width;
	background: #fff;
	z-index: 12;
	transition: all 0.3s;
	-webkit-transition: all 0.3s;	

	&.out {
		bottom: -221px;
	}

	.key-code {
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		border-bottom: 1px solid $bordercolor;
		font-size: 29px;

		.code {
			flex-grow: 1;
			height: 54px;
			line-height: 54px;
			text-align: center;
			border-right: 1px solid $bordercolor;

			&:active {
				background: #ececec;
			}

			&:nth-of-type(3) {
				border-right: none;
			}
		}

		.blank,
		.back {
			color: transparent;
			background:#d1d5db;
			position: relative;	

			span {
				position: absolute;
				display: block;
				width: 23px;
				height: 16px;
				background: url(../img/bg.png) no-repeat -311px 0;
				margin-left: 50%;
				left: -11.5px;
				top: 19px;

			}
		}
	}
}

.pay-password {
	position: fixed;
	top: 87px;
	width: 295px;
	padding-top: 20px;
	background: #fff;
	z-index: 13;
	border-radius:3px;
	margin-left: 50%;
	left: -147.5px;
	display: flex;
	display: -webkit-flex;
	flex-direction: column;
	align-items: center;
	transition: opacity 0.3s;
	-webkit-transition: opacity 0.3s;
	opacity: 1;

	&.out {
		// display: none;
		top: -1000px;
		opacity: 0;
	}

	.title {
		font-size: $big-size;
		letter-spacing:0.2px;
		margin-bottom: 20px;
		font-weight: 600;
	}

	.password {
		width: 255px;
		border:1px solid #ccc;
		height: 40px;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		margin-bottom: 28px;

		.password-input {
			height: 100%;
			height: 38px;
			flex-grow: 1;
			border-right: 1px solid #ccc;

			input {
				width: 100%;
				height: 100%;
				text-align: center;
				line-height: 38px;
				border: none;
				outline: none;
				font-size: 20px;
			}

			&:last-child {
				border-right: none;
			}
		}
	}

	.password-opt {
		border-top: 1px solid #d8d8d8;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		height: 50px;
		width: 100%;

		.opt {
			flex-grow: 1;
			line-height: 49px;
			text-align: center;

			&:active {
				background: #ececec;
			}

			&:first-child {
				border-right: 1px solid #d8d8d8;
			}
		}
	}
}


// 商城首页样式
.shop-home-nav {
	display: flex;
	display: -webkit-flex;
	width: 100%;
	padding: 16px 21px;
	flex-direction: row;	
	justify-content: space-between;
	align-items: center;
	height: 117px;
	background: #fff;

	.list {
		width: 60px;
		height: 85px;
		display: flex;
		display: -webkit-flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;

		.nav-icon {
			width: 60px;
			height: 60px;
			border-radius: 24px;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			align-items: center;
			justify-content: center;

			span {
				width: 40px;
				height: 40px;
				border-radius: 50%;
			}
		}

		.nav-name {
			font-size: $small-size;
			color: #999;
			margin-top: 7px;
		}
	}

	a {
		&:nth-child(1) .list .nav-icon {
			background-color: #7eb3f1;

			span {
				background: url(../img/bg.png) no-repeat -384px 0;
			}
		}

		&:nth-child(2) .list .nav-icon {
			background-color: #f26363;;

			span {
				background: url(../img/bg.png) no-repeat -422px 0;
			}
		}

		&:nth-child(3) .list .nav-icon {
			background-color: #f9ad2f;

			span {
				background: url(../img/bg.png) no-repeat -459px 0;
			}
		}

		&:nth-child(4) .list .nav-icon {
			background-color: #97da4d;

			span {
				background: url(../img/bg.png) no-repeat -384px 0;
			}
		}
	}
}

.three-column {
	width: 100%;
	background: #fff;
	margin-top: 12px;

	.title {
		font-size: $big-size;
		padding-top: 8px;
		margin-bottom: 8px;
		padding-left: 17px;
	}

	.goods-items {
		width: 100%;
		overflow-x: auto;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;

		.item {
			width: 133px;
			padding-left: $gap;
			display: flex;
			display: -webkit-flex;
			flex-direction: column;

			img {
				width: 117px;
				// height: 72px;
			}

			.name {
				margin: 8px 0 4px;
			}

			.desc {
				font-size: $small-size; 
				color: #999;
				margin-bottom: 12px;
			}
		}
	}

	.more {
		text-align: center;
		height: 44px;
		line-height: 44px;
	}
}


footer {
	position: fixed;
	width: 100%;
	max-width: $max-width;
	height: 50px;
	padding: 8px 0 2px;
	bottom: 0;
	box-sizing: border-box;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	background: #fff;
	border: 1px solid #f1f1f1;

	a {
		width: 25%;
	}

	.list {
		width: 100%;
		height: 100%;
		display: flex;
		display: -webkit-flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;

		.icon {
			width: 21px; 
			height: 20px;
		}

		.name {
			font-size: 12px;
			color: #999;
			transform: scale(0.83, 0.83);
		}
	}

	a:nth-child(1) {
		.list  {

			.icon {
				background: url(../img/bg.png) no-repeat -494px 0;	
			}
		}

		.active {

			.icon {
				background: url(../img/bg.png) no-repeat -598px 0;	
			}

			.name {
				color: #333;
			}
		}
	}

	a:nth-child(2) {
		.list  {

			.icon {
				width: 15px;
				background: url(../img/bg.png) no-repeat -520px 0;	
			}
		}

		.active {

			.icon {
				background: url(../img/bg.png) no-repeat -622px 0;	
			}

			.name {
				color: #333;
			}
		}

	}


	a:nth-child(3) {
		.list  {

			.icon {
				width: 18px;
				background: url(../img/bg.png) no-repeat -544px 0;	
			}
		}

		.active {

			.icon {
				background: url(../img/bg.png) no-repeat -646px 0;	
			}

			.name {
				color: #333;
			}
		}

	}


	a:nth-child(4) {
		.list  {

			.icon {
				width: 23px;
				background: url(../img/bg.png) no-repeat -568px 0;	
			}
		}

		.active {

			.icon {
				background: url(../img/bg.png) no-repeat -670px 0;	
			}

			.name {
				color: #333;
			}
		}

	}

}

// 热门机构
.organization-lists {
	width: 100%;
	background: #fff;

	.list {
		width: 100%;
		padding: 20px $gap;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		align-items: center;

		img {
			width: 73px;
			height: 52px;
			margin-right: 16px;
		}

		.info {
			height: 52px;
			flex-grow: 1;
			display: flex;
			display: -webkit-flex;
			flex-direction: column;
			justify-content: space-between;
			overflow: hidden; // 不加这一句， name多出的部分不会省略

			.name {
				height: 24px;
				width: 100%;
				font-size: $big-size;
				display: flex;
				display: -webkit-flex;
				flex-direction: row;
				align-items: center;
				
				.text {
					flex-grow: 1;
					font-size: $big-size;
					@extend .one-line;
					overflow: hidden;

					span {
						display: inline-block;
						width: 59px;
						height: 19px;
					}
				}

				.sign {
					background: url(../img/bg.png) no-repeat -101px 0;	
				}
			}

			.desc {
				font-size: $small-size;
				color: #999;
			}
		}
	}
}

.try-class-lists {
	width: 100%;
	background: #fff;

	.list {
		width: 100%;
		padding: 20px $gap;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		align-items: center;
		border-bottom: 1px solid #F1F1F1;

		.img {
			width: 104px;
			height: 64px;
			position: relative;

			.try {
				position: absolute;
				left: 0;
				bottom: 0;
				background:#7ed321;
				font-size: $small-size;
				color:#ffffff;
				width:48px;
				height:22px;
				text-align: center;
				line-height: 22px;
			}

			img {
				width: 100%;
				height: 100%;
			}
		}

		.info {
			height: 64px;
			flex-grow: 1;
			display: flex;
			display: -webkit-flex;
			flex-direction: column;
			justify-content: space-between;
			overflow: hidden; // 不加这一句， name多出的部分不会省略

			.name {
				height: 24px;
				width: 100%;
				font-size: $big-size;
				display: flex;
				display: -webkit-flex;
				flex-direction: row;
				align-items: center;
				
				.text {
					flex-grow: 1;
					font-size: $big-size;
					@extend .one-line;
					overflow: hidden;
				}

				span {
					width: 59px;
					height: 19px;
				}

				.sign {
					background: url(../img/bg.png) no-repeat -101px 0;	
				}
			}

			.time {
				font-size: $small-size;
				color: #999;
			}

			.price {
				@extend .font-red;
				margin-top: 2px;
				display: flex;
				display: -webkit-flex;
				flex-direction: row;
				align-items: center;

				.support {
					width: 17px;
					height: 14px;
					display: inline-block;
					margin-left: 9px;
					background: url(../img/bg.png) no-repeat -313px -44px;
				}

				.discount {
					@extend .support;
					background: url(../img/bg.png) no-repeat -335px -44px;
				}
			}
		}
	}
}

.organizatiion-details {
	background: #fff;
	position: relative;
	width: 100%;
	padding: 60px $gap 12px;
	margin-bottom: 12px;


	.details-info {
		position: absolute;
		height: 76px;
		width: 100%;
		top: -38px;
		left: 0;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		align-items: center;
		padding: 0 $gap;

		img {
			width: 76px;
			height: 76px;
			border-radius:3px;
			margin-right: 12px;
		}

		.info {
			height: 100%;
			padding: 12px 0;
			flex-grow: 1;
			display: flex;
			display: -webkit-flex;
			flex-direction: column;
			justify-content: space-between;

			overflow: hidden;

			.name {
				color: #fff;
				font-size:17px;
				flex-grow: 1;
				@extend .one-line;
			}

			.desc {
				font-size: $small-size;
				color:#999;
			}

		}
	}

	.introduce {

		.title {
			font-weight: bold;
			margin-bottom: 8px;
		}

		.cont {
			width: 342px;
			height: 105px;
			margin-bottom: 12px;
		}

		.more {
			height: 44px;
			line-height: 44px;
			text-align: center;
		}
	}
}

.organization-course {
	 background: #fff;
	 width: 100%;
	 max-width: $max-width;

	.title {
		width: 100%;
		height: 44px;
		line-height: 44px;
		font-weight: bold;
		padding-left: $gap;
	}

	.navs {
		width: 100%;
		height: 44px;
		border-top: 1px solid #f1f1f1;
		padding-right: 44px;
		position: relative;
		box-shadow:0 2px 4px 0 rgba(0,0,0,0.07);

		nav {
			width: 100%;
			overflow-x: auto;
			height: 100%;
			white-space: nowrap;

			&::-webkit-scrollbar {
				width: 0;
				height: 0;
			}
			
			.list {
				height: 100%;
				line-height: 44px;
				display: inline-block;
				padding: 0 16px;
				position: relative;

				span {
					display: none;
					position: absolute;
					left: 0;
					bottom: 0;
					width: 100%;
					height: 4px;
					background: #f4cd6f;
				}
				
			}
			.active {
				@extend .gold;

				span {
					display: block;
				}
			}
		}


		.toggle {
			position: absolute;
			right: 0;
			top: 0;
			height: 44px;
			width: 44px;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			justify-content: center;
			align-items: center;

			span {
				width: 9px;
    			height: 18px;
				background: url(../img/bg.png) no-repeat -22px 0;
   				transform: rotate(90deg);
   				-webkit-transform: rotate(90deg);
   				transition: transform .2s;
   				-webkit-transition: transform .2s;
			}

			&.active {

				span {
					transform: rotate(-90deg);
   					-webkit-transform: rotate(-90deg);
				}

				& ~ .please-select {
					display: block;
				}

				& ~ nav {
					display: none;
				}
			}
		}

		.please-select {
			line-height: 44px;
			width: 100%;
			padding-left: $gap;
			display: none;
			color: #999;
		}

	}

	.flex-navs {
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		flex-wrap: wrap;

		.list {
			width: 25%;
			height: 81px;
			border-bottom: 1px solid #e3e3e3;
			border-right: 1px solid #e3e3e3;
			display: flex;
			display: -webkit-flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-between;
			padding: 15px 0 12px;


			&:nth-child(4n) {
				border-right: none;
			}

			img {
				width: 30px;
				height: 30px;
				display: block;
			}

			.name {
				font-size:14px;
				color: #999;
			}
		}
	}
}

.more-desc {
	width: 100%;
	padding: $gap;
	background: #fff;
	color: #999;
}

.more-desc-img {
	width: 100%;
}

.common-title {
	background: #ffffff;
	width: 100%;
	height: 44px;
	line-height: 44px;
	font-weight: bold;
	padding-left: $gap;
}

.select-classify {

	.title {
		background:#ffffff;
		box-shadow:0 2px 4px 0 rgba(0,0,0,0.07);
		width: 100%;
		height:44px;
		line-height: 44px;
		padding: 0 $gap;
		position: relative;
		color: #999;

		&:before {
		    content: " ";
		    position: absolute;
		    top: 0;
		    left: 0;
		    width: 100vw;
		    height: 1px;
		    border-top: 1px solid #d9d9d9;
		    color: #d9d9d9;
		    -webkit-transform-origin: 0 0;
		    transform-origin: 0 0;
		    -webkit-transform: scaleY(.5);
		    transform: scaleY(.5);
		}

		&:after {
			content: '';
			position: absolute;
			right: $gap;
			top: 15px;
			width: 9px;
    		height: 18px;
			background: url(../img/bg.png) no-repeat -22px 0;
   			transform: rotate(-90deg);
   			transition: transform 0.1s; 
   			-webkit-transition: transform 0.1s; 
		}

		&.toggle {

			&:after {
   				transform: rotate(90deg);
			}

			& + .classify {
				height: 0 !important;
				padding: 0;
			}
		}
	}

	.classify {
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		flex-wrap: wrap;
		background: #f4f4f4;
		padding-bottom: 15px;
		transition: height .2s;
		overflow: hidden;

		.list {
			width: 25%;
			height: 50px;
			line-height: 50px;
			text-align: center;
			border-right: 1px solid #e3e3e3;
			border-bottom: 1px solid #e3e3e3;

			&:nth-child(4n) {
				border-right: none;
			}
		}
	}
}

.activity-events {
	background: #fff;
	width: 100%;
	.list {
		margin-bottom: 12px;
		width: 100%;

		img {
			display: block;
			width: 100%;
			height: 50vw;
		}

		.info {
			padding: 8px $gap;
			height: 62px;
			display: flex;
			display: -webkit-flex;
			flex-direction: column;
			justify-content: space-between;

			.info-name {
				font-size: $big-size;
				font-weight: bold;
			}

			.info-time {
				font-size: $small-size;
				@extend .font-grey;
			}
		}
	}
}

.activity-details {
	background: #fff;
	padding: $gap;

	img {
		width: 100%;
	}
}

.activity-details-img {
	width: 100%;
	height: 50vw;
	display: block;
}

.activity-details-title {
	font-size: 20px;
	margin-bottom: 8px;
}

.activity-details-info {
	font-size: $small-size;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 4px;
	span {
		margin-right: 4px;
	}
	.timetamp {
		width: 14px;
		height: 14px;
		background: url(../img/bg.png) no-repeat -757px 0;	
	}

	.position {
		width: 12px;
		height: 14px;
		background: url(../img/bg.png) no-repeat -775px 0;	
	}
}

.activity-details-text {
	margin-top: 24px;
	margin-bottom: 12px;
}

.activity-join-info {
	width: 100%;
	padding: 16px;
	background: #fff;
	margin-top: 15px;
	font-size: $small-size;
}

.short-line {
	background:#e3e3e3;
	width:64px;
	height:2px;
}

.change-name {
	padding: 21px $gap;
	background: #fff;
	.title {
		margin-bottom: 4px;
	}

	.input-item {
		width: 100%;
		position: relative;
		height: 50px;
		padding: 10px 16px;
		background:#f4f4f4;
		border-radius:3px;
		margin-bottom: 35px;

		input {
			width: 100%;
			height: 100%;
			line-height: 30px;
			border: none;
			outline: none;
			background:#f4f4f4;

		}	

		.clear-value {
			position: absolute;
			top: 17px;
			right: 17px;
			width: 16px;
			height: 16px;
			background: url(../img/bg.png) no-repeat 0 -44px;	
		}
	}
}

.confirm-btn {
	width: 100%;
	text-align: center;
	background: #f4cd6f;
	border-radius: 55px;
	width: 100%;
	height: 44px;
	line-height: 44px;
	border: none;
	outline: none;
	color: #fff;
	font-size: $common-size;

	&:active {
		opacity: 0.7;
	}
}

.course-top-serach {
	position: fixed;
	top: 0;
	z-index: 12;
	background: #fff;
	width: 100%;
	max-width: $max-width;
	height: 50px;
	padding: 8px 16px;
	display: flex;
	display: -webkit-flex;
	align-items: center;
	flex-direction: row;
	box-shadow:0 2px 4px 0 rgba(0,0,0,0.07);

	.search-container {
		background:#f4f4f4;
		border: 1px solid #E2E2E2;
		height: 100%;
		// width: 100%;
		flex-grow: 1;
		border-radius:79px;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		@extend .font-grey;

		span {
			width: 16px; 
			height: 16px;
		}

		.search-icon {			
			background: url(../img/bg.png) no-repeat -19px -44px;	
			margin-right: 12px;
		}
	}

	.shopcar-icon {
		position: relative;
		width: 22px; 
		height: 22px;
		margin-left: 15px;
		background: url(../img/bg.png) no-repeat -358px -44px;

		span {
			position: absolute;
			display: block;
			width: 32px;
			height: 32px;
			background: red;
			color: #fff;
			font-size: 20px;
			border-radius: 50%;
			top: -16px;
			right: -18px;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			align-items: center;
			justify-content: center;
			transform: scale(0.5);
			-webkit-transform: scale(0.5);
		}
	}

	.search-real {
		justify-content: space-between;
		width: auto;
		flex-grow: 1;

		input {
			flex-grow: 1;
			height: 100%;
			border: none;
			outline: 0;
			background: transparent;
		}

		.search-icon {
			margin-left: 15px;
			margin-right: 11px;
		}

		.clear-value {
			background: url(../img/bg.png) no-repeat 0 -44px;	
			margin-right: 12px;
		}
	}

	.cancel-search {
		width: 30px;
		@extend .gold;
		margin-left: 15px;
	}
}
.course-navs-fixed {
	position: fixed;
	top: $footHeight;
	z-index: 12;
}

.message-num {
	position: fixed;
	top: 0;
	background: $gold;
	width: 100%;
	max-width: $max-width;
	padding: 0 $gap;
	height:36px;
	display: flex;
	display: webkit-flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	.text {
		flex-grow: 1;
	}

	.arrow {
		width: 9px;
		height: 16px;
		background: url(../img/bg.png) no-repeat -38px -44px;
	}
}

.vip-bg {
	width: 100%;
	height: 146px;
	border: 1px solid #efefef;
}

.vip-info {
	position: relative;
	width: 100%;
	background: #fff;
	padding-top: 80px;

	.vip-info-card {
		position: absolute;
		width: 90%;
		left: 5%;
		height: 110px;
		top: -55px;
		box-shadow:0 0 13px 0 rgba(209,167,67,0.60);
		border-radius:10px;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		align-items: center;
		background: #fff;

		.message-tell {
			position: absolute;
			width: 44px;
			height: 44px;
			top: -22px;
			right: -6px;
			box-shadow:0 4px 13px 0 rgba(209,167,67,0.60);
			border-radius:100px;		
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			align-items: center;
			justify-content: center;
			background: #fff;

			span {
				width: 20px;
				height: 22px;
				background: url(../img/bg.png) no-repeat -47px -44px;

			}	
		}

		.head-img {
			position: relative;
			width: 64px;
			height: 64px;
			border-radius: 50%;
			box-shadow:0 0 13px 0 rgba(209,167,67,0.60);
			margin-right: 20px;
			margin-left: 22px;
			
			img {
				width: 100%;
				height: 100%;
				border-radius: 50%;
			}

			span {
				display: block;
				width: 22px;
				height: 20px;
				position: absolute;
				top: -5px;
				right: -2px;
				background: url(../img/bg.png) no-repeat -68px -44px;

			}
		}

		.info-name {
			flex-grow: 1;
			a {
				padding-left: 8px;
			}
		}
	}

	.vip-info-proterty {
		width: 100%;
		height: 60px;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		padding: 13px 0 11px;

		.list {
			flex-grow: 1;
			flex: 1;
			border-right: 1px dotted #e3e3e3;
			padding-left: 20px;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;

			&:last-child {
				border: none;
			}

			.icon {
				width: 24px;
				height: 24px;
				background: url(../img/bg.png) no-repeat;
				margin-right: 8px;
				position: relative;
				top: 4px;
			}

			.account {
				background-position: -95px -44px;
			}
			
			.socer {
				background-position: -120px -44px;
			}

			.vip-coupon {
				background-position: -150px -44px;
			}

			.details {
				display: flex;
				display: -webkit-flex;
				flex-direction: column;

				.name {
					@extend .font-grey;
				}
			}
		}
	}
}

.add-baby {
	width: auto;	
	height: 80px;
	padding: 12px 11px;
	margin: $gap;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	background-color: #fff;
	box-shadow:0 0 8px 0 rgba(36,36,36,0.11);

	img {
		width: 56px;
		height: 56px;
		margin-right: 12px;
	}

	.text {
		flex-grow: 1;
		height: 100%;
		display: flex;
		display: -webkit-flex;
		flex-direction: column;
		justify-content: space-between;
	}
}

.vip-items {
	width: 100%;
	padding: 0 $gap;
	display: flex;	
	display: -webkit-flex;
	flex-direction: row;
	justify-content: space-between;

	.item {
		flex-grow: 1;
		flex: 1;
		height: 96px;
		padding: 19px 0 13px;
		margin-right: 21px;
		background: #fff;
		display: flex;
		display: -webkit-flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
		box-shadow:0 0 8px 0 rgba(36,36,36,0.11);
		border-radius:10px;
		margin-bottom: 16px;

		&:last-child {
			margin-right: 0;
		}

		.icon {
			width: 30px;
			height: 30px;
			background: url(../img/bg.png) no-repeat;
		}

		.order {
			background-position: -180px -44px;
		}

		.homework {
			background-position: -212px -44px;
		}

		.code {
			background-position: -245px -44px;
		}
	}
}

.vip-index {
	width: auto;
	margin: 0 $gap;
	height: 60px;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	background: #fff;
	box-shadow:0 0 8px 0 rgba(36,36,36,0.11);

	span {
		width: 26px;
		height: 32px;
		background: url(../img/bg.png) no-repeat -281px -44px;
		margin-right: 8px;
	}
}



// 商城搜索页面y样式
.hot-search {
	background: #fff;
	padding: $gap;

	.title {
		margin-bottom: 11px;
	}

	.hot-serach-items {
		width: 100%;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		flex-wrap: wrap;
		margin-bottom: 12px;

		.item {
			flex-grow: 0;
			padding: 7px 15px;
			border:1px solid #F6F6F6;
			border-radius:79px;
			margin-right: 13px;
			margin-bottom: 11px;
		}
	}

	.recent-search-items {
		width: 100%;

		.item {
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			width: 100%;
			height: 44px;

			.del {
				width: 16px;
				height: 16px;
				background: url(../img/bg.png) no-repeat 0 -44px;
			}
		}
	}
}
.shop-main-img {
	margin-bottom: 13px;
	width: 100%;
}

.shop-title {
	width: 100%;
	text-align: center;
	font-size: $big-size;
	height: 24px;
	position: relative;
	margin-bottom: 11px;

	.more {
		position: absolute;
		top: 0;
		right: 8px;
		display: inline-block;
		height: 100%;
		@extend .gold;
		font-size: $common-size;
	}

	.gold-bot-line {
		position: absolute;
		width: 64px;
		height: 7px;
		background: rgba(244, 205, 111, .4);
		left: 50%;
		bottom: 4px;
		margin-left: -32px;
	}
}

.popular-goods {
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	align-content: flex-start;
	width: 100%;
	padding: 0 7px;
	margin-bottom: 23px;

	.most-popular {
		width: 185px;
		height: 185px;
		flex-grow: 0;
		flex-shrink: 0;
		margin-right: 8px;
	}

	.other-popular {
		flex-grow: 1;

		a {
			display: block;

			&:first-child {
				margin-bottom: 10px;
			}
		}
		
		.list {
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			justify-content: space-between;
			height: 88px;
			background: #f4f4f4;

			img {
				width: 88px;
				height: 87px
			}

			.info {
				border-bottom: 7px solid #f4f4f4;
				flex-grow: 1;
				padding: 0 7px;
				overflow: hidden;
				@extend .font-grey;
				text-overflow: ellipsis;
				font-size: $small-size;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 3;
				overflow: hidden;

				.name {
					font-weight: bold;
					color: #333;
					padding: 4px 0;
				}
			}
		}
	}
}

.hot-sale-goods {
	width: 100%;
	padding: 0 0.28rem;
	margin-bottom: 16px;

	.goods-top {
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		justify-content: space-between;
		margin-bottom: 0.28rem;

		.main-img {
			width: 4.6rem;
			height: 5.96rem;
			margin-right: 0.28rem;
		}

		.list {
			width: 9.48rem;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			flex-wrap: wrap;
			align-content: flex-start;
			flex: 1;

			a {
				width: 4.6rem;
				height: 2.84rem;

				img {
					width: 100%;
					height: 100%;
				}

				&:nth-of-type(2n-1) {
					margin-right: 0.28rem;
				}

				&:nth-of-type(1),
				&:nth-of-type(2) {
					margin-bottom: 0.28rem;
				}
			}	
		}
	}

	.goods-list {
		width: 100%;

		.list {
			width: 100%;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			flex-wrap: wrap;
			align-content: flex-start;

			a {
				width: 4.6rem;
				height: 2.84rem;
				margin-right: 0.28rem;
				margin-bottom: 0.28rem;

				img {
					width: 100%;
					height: 100%;
				}

				&:nth-of-type(3n) {
					margin-right: 0;
				}
			}
		}
	}
}

.shop-goods-items {
	width: 100%;
	padding: 4px 7px 0;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;
	flex-wrap: wrap;

	a {
		margin-bottom: 20px;
		color: #333;

		&:nth-of-type(2n-1) {
			margin-right: 0.28rem;
		}

		.item {
			width: 7.08rem;
			flex-grow: 0;
			background: #fff;
			padding-bottom: 11px;

			img {
				width: 7.08rem;
				height: 7.08rem;
				display: block;
			} 

			.goods-name {
				@extend .two-line;
				padding: 0 7px;
			}

			.goods-price {
				font-size: $big-size;
				@extend .font-red;
				font-weight: bold;
				display: flex;
				display: -webkit-flex;
				flex-direction: row;
				align-items: center;
				margin: 8px 0 4px;
				padding: 0 7px;

				.support {
					width: 17px;
					height: 14px;
					display: inline-block;
					margin-left: 9px;
					background: url(../img/bg.png) no-repeat -313px -44px;
				}

				.discount {
					@extend .support;
					background: url(../img/bg.png) no-repeat -335px -44px;
				}
			}
		}
	}
}

.popular-goods-items {
	margin-top: 7px;
}

.all-category {
	width: 100%;
	height: 100%;
	border-top: $footHeight solid #fff;
	display: flex;
	display: -webkit-flex;
	flex-direction: row;

	.category-nav {
		width: 4rem;
		color: #333;
		overflow-y: auto;

		.nav-item {
			width: 100%;
			height: 50px;
			line-height: 40px;
			text-align: center;
			border-bottom: 1px solid #fff;

			&.active {
				background: #fff;
			}

			a {
				width: 100%;
				height: 1005;
			}
		}
	}

	.nav-content {
		height: 100%;
		width: 11rem;
		flex-grow: 1;
		padding-left: 16px;
		background: #fff;
		display: flex;
		display: -webkit-flex;
		flex-direction: row;
		flex-wrap: wrap;
		padding-top: 16px;
		align-content: flex-start;
		overflow: auto;

		a {
			width: 4.6rem;
			height: 2.84rem;
			margin-right: 0.28rem;
			margin-bottom: 0.28rem;
			border-radius:3px;

			img {
				width: 100%;
				height: 100%;
			}

			&:nth-of-type(2n) {
				// margin-right: 0;
			}
		}

	}
}

.shopping-car {
	border-top: 12px solid #f4f4f4;
	width: 100%;

	.item {
		width: 100%;
		display: block;
		box-sizing: border-box;
		background: #fff;
		margin-bottom: 12px;

		.car-opts {
			width: 100%;
			height:44px;
			padding: 0 16px 0;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			border-bottom: 1px dotted #E5E5E5;

			label {
				display: block;
				width: 100px;

				& > * {
					pointer-events: none;
				}

				input {
					display: none;

					&:checked + .icon {
						border: none;
						background: url(../img/bg.png) no-repeat -388px -44px;	
					}
				}

				.icon {
					display: inline-block;
					width: 22px;
					height: 22px;
					border: 1px solid #ccc;
					border-radius: 50%;	
				}
			}

			.opt {
				font-size: $small-size;
				line-height: 44px;
				height: 100%;
				

				.coupon {
					width: 44px;
					display: inline-block;
					position: relative;
					@extend .gold;

					&::after {
						position: absolute;
						right: 0;
						top: 15px;
						content: '';
						display: inline-block;
						height: 12px;
						width: 1px;
						background: #e3e3e3;;
					}
				}

				.edit {
					padding-left: 16px;
					@extend .gold;
				}
			}
		}

		.goods-info {
			padding: 0 16px 0;
			width: 100%;
			display: flex;
			display: -webkit-flex;
			flex-direction: row;
			justify-content: space-between;
			margin-top: 16px;
			padding-bottom: 13px;
    		height: 80px;

			img {
				width: 64px;
				height: 64px;
				margin-right: 12px;
			}

			.info {
				flex-grow: 1;
				display: flex;
				flex-direction: column;
				justify-content: space-between;


				.name {
					@extend .two-line;
					font-size: $small-size;
				}

				.property {
					display: flex;
					display: -webkit-flex;
					flex-direction: row;
					align-items: center;
					justify-content: space-between;
					position: relative;

					.price {
						font-size: $small-size;
						.num {
							@extend .font-red;
							font-weight: bold;
							font-size: $common-size;
							margin-right: 8px;
						}	
					}

					.car-calculate {
						position: absolute;
						margin: 0;
						bottom: -7px;
						right: 0;
					}
				}
			}
		}
	}
}